<template>
    <div>
       <h1>组件Count1</h1>
       <Count1 :num = "10"/>
       <hr>
       <h1>组件Count2</h1>
       <Count2 v-bind = "person" /> 
    </div>
</template>

<script>
//引入组件
import Count1 from "./components/Count1";
import Count2 from "./components/Count2";
export default {
  name: "App",
  //注册组件
  components: {
    Count1,
    Count2,
  },
  data(){
    return{
        name: "APP",
        person:{
          name1:"英雄本色",
          name2:"星级穿越",
          name3:"绿皮书",
          name4:"凡人修仙传",
        }
    }
  },
};
</script>


<style>
</style>